export default {
  state: () => ({
    locale: "en-US",
    locales: ["zh-CN", "en-US"]
  }),
  mutations: {
    SET_LANG(state, locale) {
      console.log("set locale", locale)
      if (state.locales.includes(locale)) {
        state.locale = locale
      }
    }
  }
}
